public class TransactionSet extends Object implements XMLMarshallable
rated transactions
computed by the SAP CC system during the charging process.
There are two types of rated transactions:
TransactionThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="transacSet" type="TransactionSetType"/>
<xs:complexType name="TransactionSetType">
<xs:sequence>
<xs:element name="master" type="TransactionType" minOccurs="0" maxOccurs="1"/>
<xs:element name="dependent" type="TransactionType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
| Constructor and Description |
|---|
TransactionSet()
Builds an empty transaction set.
|
| Modifier and Type | Method and Description |
|---|---|
void |
adaptTransactionAmounts() |
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
void |
addDependent(Transaction t)
Adds a dependent transaction to this transaction set.
|
List<Transaction> |
getDependents()
Returns the dependent transactions.
|
Transaction |
getMaster()
Returns the master transaction.
|
String |
getName() |
int |
getOrigin()
|
Integer |
getSnapshotId() |
TransactionSet |
getTransactionSet(boolean isFilterTransactions)
Gets the transactionSet according to the isFilterTransaction value.
|
Long |
getTransactionSetID()
Returns the transaction set ID.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
marshal(XMLOutputter output,
String tagName) |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setMaster(Transaction m)
Sets master transaction.
|
void |
setSnapshotIdIfNull(Integer snapshotId) |
void |
setTransactionSetID(Long id)
Sets transaction set ID.
|
public String getName()
public Long getTransactionSetID()
public void setTransactionSetID(Long id)
id - The transaction set IDpublic Transaction getMaster()
public void setMaster(Transaction m)
m - The master transactionpublic List<Transaction> getDependents()
public void addDependent(Transaction t)
t - The dependent transaction to addpublic int getOrigin()
usage,
recurring,
oneshot.public void setSnapshotIdIfNull(Integer snapshotId)
public Integer getSnapshotId()
public TransactionSet getTransactionSet(boolean isFilterTransactions)
isFilterTransactions - true if the returned transactions of transactionSet must be filtered, false otherwise.public void adaptTransactionAmounts()
public void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addChild(String tagName, XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void addCharacterData(String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object intopublic void marshal(XMLOutputter output, String tagName)